
$("#cancel1").on("click", function () {
    $("#editFormDiv1").hide()
    $("#editForm1")[0].reset()
    layer.closeAll()
    $("#planName1").attr("readonly", false)
});

$("#cancel2").on("click", function () {
    $("#editFormDiv2").hide()
    $("#editForm2")[0].reset()
    layer.closeAll()
    $("#planName2").attr("readonly", false)
});
$("#cancel3").on("click", function () {
    $("#editFormDiv3").hide()
    $("#editForm3")[0].reset()
    layer.closeAll()
});
$("#cancel4").on("click", function () {
    $("#editFormDiv4").hide()
    $("#editForm4")[0].reset()
    layer.closeAll()
});
$("#addElePlan1").click(function () {
    layer.open({
        type: 1,
        title: "新增电价方案",
        offset: ['150px'],
        area: ['400px', '300px'],
        content: $("#elePlanDiv1"),
        end: function (i) {
            $("#elePlanDiv1").hide()
            $("#editForm1")[0].reset()
            layer.close(i)
        }
    });
})